// 折线
import { PolylineEdge, PolylineEdgeModel } from "@logicflow/core";

class customPolyEdgeModel extends PolylineEdgeModel {
  getEdgeStyle() {
    const style = super.getEdgeStyle();
    if (this.properties.customError) {
      style.stroke = "#E34D59";
    }
    return style;
  }
}

export default {
  type: "bpmn:sequenceFlow",
  view: PolylineEdge,
  model: customPolyEdgeModel,
};
